package top.ochiamalu.aioj.converter;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import top.ochiamalu.aioj.domain.entity.UserDetail;
import top.ochiamalu.aioj.domain.vo.user.UpdateUserDetailVO;

/**
 * 用户详细信息转换器
 *
 * @author ochiamalu
 * @date 2025/02/24
 */
@Mapper
public interface UserDetailConverters {
    UserDetailConverters INSTANCE = Mappers.getMapper(UserDetailConverters.class);

    /**
     * 转换实体到vo
     *
     * @param userDetail 用户详细信息
     * @return {@link UpdateUserDetailVO }
     */
    @Mapping(target = "tagList", ignore = true)
    UpdateUserDetailVO convertEntity2VO(UserDetail userDetail);
}
